View Javadoc
1 package jrre.instructionset.push; 2 3 import jrre.*; 4 import jrre.types.*; 5 import jrre.classloader.classfile.pool_entries.*; 6 7 public class IConst_1 extends jrre.instructionset.Instruction { 8 9 public IConst_1(){ 10 11 name = "iconst_1"; 12 description = "foo foo moo poo"; 13 length = 0; 14 } 15 16 /*** 17 * Executes the <strong><code>iconst_1</code></strong> instruction. 18 * 19 */ 20 public void execute(){ 21 22 Stack.pushOperand(new PrimitiveType(1)); 23 24 } 25 26 public String toString(){ 27 StringBuffer toReturn = new StringBuffer(); 28 toReturn.append("iconst_1"); 29 return toReturn.toString(); 30 } 31 }

This page was automatically generated by Maven